home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_5620.txt < prev    next >
Text File  |  1994-03-01  |  719b  |  19 lines

  1. 5 ONERRORGOTO900
  2. 20 MODE8:DIM:l=0:r=0:a=0:c$=CHR$(5):ANGLE0
  3. 30 CLS:PRINT"Area (sector)";TAB(0);"1:lr/2     2:ãrýé/360";
  4. 40 w=ASC(INPUT$(1,@))-48:IFw<1 ORw>2 THEN40
  5. 50 ONw GOTO100,200
  6. 100 CLS:PRINT"lr/2  l:circular arc   r:radius";
  7. 110 s$="l":z=l:GOSUB500:l=z
  8. 120 s$="r":z=r:GOSUB500:r=z
  9. 130 z=l*r/2:GOTO400
  10. 200 CLS:PRINT"ãrýé/360     r:radius  é:DEG";
  11. 220 s$="r":z=r:GOSUB500:r=z
  12. 230 s$="é":z=a:GOSUB500:a=z:IFa>360 THEN230
  13. 240 z=PI*a*r^2/360
  14. 400 LOCATE0,1:PRINTc$;"Area =";z;:z$=INPUT$(1,@):GOTO30
  15. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@42;z:LOCATE0,0:IFz<0 THEN500 ELSERETURN
  16. 900 IFERR=1 THENCLS:ONERRORGOTO0
  17. 910 IFERL=500 THENRESUME500
  18. 920 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):RESUME30
  19.